import { defineStore } from 'pinia'

//创建一个id为counter的store，// 第一个参数是应用程序中 store 的唯一 id
const useCounterStore = defineStore('counter', {
  state: () => ({
    tokentToken: ''
  }),
  getters: {
    doubleCounter(state) {
      return state.counter * 2
    }
  },
  actions: {
    changeCounterAction() {
      this.counter = newCounter
    }
  }
})

export default useCounterStore
